KEYS: Limit ABI change in 4.13.10
authorBen Hutchings <ben@decadent.org.uk>
Sun, 29 Oct 2017 10:30:46 +0000 (10:30 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:04:10 +0000 (21:04 +0000)
commit61ecddd06cc50f8976af8947da07a7922465db12
treead2962ecf2e389d99ed965fdad55d2807b93de47
parente5927ae4e566f6d6aa4621b74cf5d6c35a011b81
KEYS: Limit ABI change in 4.13.10

Commit 363b02dab09b ("KEYS: Fix race between updating and finding a
negative key") rearranged various state members in struct key, resulting
in an ABI change for all keys APIs.

Only the keys subsystem and key type implementation use this state
information, so we can limit the ABI break to them:

- Renumber the other flags back to their old values
- Hide the deletion of the reject_error field from genksyms (it was only
  used inside the keys subsystem)
- Move the new state field to the end of the structure and hide it from
  genksyms
- Rename the register_key_type() function, so newly built key type
  modules will only load on top of the new keys subsystem while old
  key type modules will only load on top of the old keys subsystem

Gbp-Pq: Topic debian
Gbp-Pq: Name keys-limit-abi-change-in-4.13.10.patch
include/linux/key-type.h
include/linux/key.h